﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SyncList.Business.Helpers;

namespace SyncList.Business.ValueObject
{
    /// <summary>
    /// Définition d'un fichier, classe abstraite
    /// </summary>
    public abstract class FileDefBase
    {

        
        private long _size;
        private string _hash;


      

        /// <summary>
        /// Taille du fichier
        /// </summary>
        public long Size
        {
            get { return (_size); }
            set { this._size = value; }
        }


        /// <summary>
        /// Hash du fichier
        /// </summary>
        public string Hash
        {
            get { return (_hash); }
            set { this._hash = value; }
        }



        /// <summary>
        /// Taille
        /// </summary>
        public string FormattedSize
        {
            get
            {
                return (SizeHelper.FormatSize(_size));

         
            }
        }



    }
}
